#include <iostream>
using namespace std;
int main12()
{
	//加减乘除 （除数不可为0）
	int a = 10, b = 3;
	cout << "a + b = " << a + b << endl;
	cout << "a - b = " << a - b << endl;
	cout << "a * b = " << a * b << endl;
	cout << "a / b = " << a / b << endl;
	double c = 0.5, d = 0.22;
	cout << "c / d = " << c / d << endl;

	//取模运算
	cout << "a % b = " << a % b << endl;

	//++
	int temp = a++ * 10;
	cout << "a = " << a << "\t" << "a++ * 10 = " << temp << endl;
	a = 10;
	temp = ++a * 10;
	cout << "a = " << a << "\t" << "++a * 10 = " << temp << endl;
	a = 10;
	//--
	temp = a-- * 10;
	cout << "a = " << a << "\t" << "a-- * 10 = " << temp << endl;
	a = 10;
	temp = --a * 10;
	cout << "a = " << a << "\t" << "--a * 10 = " << temp << endl;

	system("pause");
	return 0;
}